package cn.kwq.project_manger.service;

import cn.kwq.project_manger.exception.UnBindWyuSystemException;
import cn.kwq.project_manger.pojo.dto.AddTeamDto;
import cn.kwq.project_manger.pojo.dto.FindTeamDto;
import cn.kwq.project_manger.pojo.dto.PageDto;
import cn.kwq.project_manger.pojo.dto.ResTeamDto;

import java.util.List;

public interface TeamService {
    Boolean isCaptain(Long userId,Long teamId);

    ResTeamDto AddNewTeam(AddTeamDto dto, Long userId) throws UnBindWyuSystemException;

    ResTeamDto acceptJoin(Long userId, Long teamId, Long joinUserId) throws UnBindWyuSystemException;

    int isCaptionCheck(Long teamId,Long joinUserId);

    Boolean rejectJoin(Long userId,Long teamId,Long joinUserId) throws UnBindWyuSystemException;

    PageDto findTeam(FindTeamDto dto);

    ResTeamDto findTeamById(Long teamId);


    List<ResTeamDto> findMyTeam(Long userId);

    List<ResTeamDto> findAllMyTeam(Long userId);
}
